from aiogram.utils.keyboard import *

def calculator_kb():
    items = ["1", "2", "3", "/", 
             "4", "5", "6", "*",
             "7", "8", "9", "-",
             "0", ".", "=", "+",
             ]
    
    builder = ReplyKeyboardBuilder()
    
    # for item in items:
    #     builder.buttons(text=item)
    
    [builder.buttons(text=item) for item in items]
    builder.button(text="НАЗАД")
    builder.adjust(*[4] * 4)
    
    return builder.as_markup(resize_keyboard=True)


def profile(text: str | list):
    builder = ReplyKeyboardMarkup()
    
    if isinstance(text, str):
        text = [text]
        
    [builder.button(text=txt) for txt in text]
    return builder.as_markup(resize_keyboard=True, one_time_keyboard=True)